package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 归还航材批次
 * </p>
 *
 * @author 肖守凯
 * @since 2021-11-08
 */
@TableName("return_date_no")
@ApiModel(value="ReturnDateNo对象", description="归还航材批次")
@Data
public class ReturnDateNo extends Model<ReturnDateNo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "归还人")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "归还批次号")
    @TableField("return_odd_number")
    private String returnOddNumber;

    @ApiModelProperty(value = "归还单位")
    @TableField("unit_id")
    private String unitId;

    @ApiModelProperty(value = "归还状态  1 待归还 /2归还成功 /3归还失败")
    @TableField("return_state")
    private String returnState;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @ApiModelProperty(value = "创建日期")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty(value = "归还失败")
    @TableField("return_for_failure")
    private String returnForFailure;


    //归还的物品
    @ApiModelProperty(value = "归还物品")
    @TableField(exist = false)
    private List<ReturnGoods> returnGoodsList;

    @ApiModelProperty(value = "归还人")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "归还单位")
    @TableField(exist = false)
    private String unitName;



}
